<%--
功能：获取指定客户对此评论的投票
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.product.service.ReviewVoteManager" %>
<%@ tag import="com.probiz.estore.common.model.product.ReviewVote" %>
<%@ attribute name="productReviewId" type="java.lang.Integer" required="true" description="商品id"%>
<%@ attribute name="customerId" type="java.lang.Integer" required="true" description="客户id"%>
<%@ attribute name="returnReviewVoteName" type="java.lang.String" required="true" description="返回的投票情况"%>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	ReviewVoteManager reviewVoteManager = (ReviewVoteManager) ctx.getBean("reviewVoteManager");
	ReviewVote vote = reviewVoteManager.getByReviewIdAndCustomerId(productReviewId,customerId);
	request.setAttribute(returnReviewVoteName,vote);
%>

